package org.openmetadata.service.events;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.LifecycleAware;
import org.openmetadata.service.events.errors.EventPublisherException;
import org.openmetadata.service.resources.events.EventResource.EventList;

public interface EventPublisher extends EventHandler<EventPubSub.ChangeEventHolder>, LifecycleAware {

  void publish(EventList events) throws EventPublisherException, JsonProcessingException;
}
